<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>

<p>
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="100%">
	<tr align="center">
		<th width="40">序号</th>
		<th>{[if $groupby ne '']} {[$groupby]} {[else]} 分类 {[/if]}</th>
		<th>数值</th>
		<th>百分比</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center">
		<td>{[$no]}</td>
		<td>{[$item.a]}</td>
		<td>{[if $r3 neq '-']}{[$item.c|money]}{[else]}{[$item.c|money]}{[/if]}</td>
		<td>{[$item.p]}</td>

	</tr>
	{[/foreach]}
	<tr align="center">
		<td></td>
		<td>总数</td>
		<td>{[$total|money]}</td>
		<td></td>
	</tr>
</table>
</p>

</body>
</html>